Creates a value encoder based on the type of the named parameter.
Parameters: parameterName - the name of the parameter whose type is used to locate a PKE factory Parameters: resources - the resources of the component, from which parameter and its type are extracted the value encoder