// Add the property for the encoder instance...
jClass.getProperties().add(new JNamedType(new JType(decoderClass), encoderName));
// Create the encoder in the constructor...
JMethod defaultConstructor = jClass.getDefaultConstructor();
defaultConstructor.appendToBody("\n " + encoderName + " = new " + decoderClass.getSimpleName() + "();");
// Configure the encoder in the constructor (if needed)....
if(dataDecoder instanceof Configurable) {
Properties configuration = ((Configurable) dataDecoder).getConfiguration();