Object obj = context.getNewObject();
if (obj instanceof AdaptableProcessingElement) {
//Drag and drop PE
return new AddPEFeature(this);
} else if (obj instanceof LocalVariableStatement) {
if (Utility.isPEVariable((LocalVariableStatement) obj)) {
return new AddPEFeature(this);
} else {
//Assume literal
return new AddConnectionInitializationFeature(this);
}
} else if (Utility.isObjectLiteral(obj)) {