dataObjectType.setType(DataType.valueOf(nodeOutputResource.getOutputType()));
}
dataObjectType.setMetaData(nodeOutputResource.getMetadata());
return dataObjectType;
}else if (object instanceof ApplicationInputResource){
ApplicationInputResource inputResource = (ApplicationInputResource)object;
dataObjectType.setKey(inputResource.getInputKey());
dataObjectType.setValue(inputResource.getValue());
if (inputResource.getInputType() != null){
dataObjectType.setType(DataType.valueOf(inputResource.getInputType()));
}
dataObjectType.setMetaData(inputResource.getMetadata());
return dataObjectType;
}else if (object instanceof ApplicationOutputResource){
ApplicationOutputResource outputResource = (ApplicationOutputResource)object;
dataObjectType.setKey(outputResource.getOutputKey());
dataObjectType.setValue(outputResource.getValue());