private FileBeginEndProcessor getBeginEndProcessor(DataFlowOpInitializateContext context, int outputPort) {
EventType portEventType = context.getOutputPorts().get(outputPort).getOptionalDeclaredType().getEventType();
Set<WriteablePropertyDescriptor> writeables = context.getStatementContext().getEventAdapterService().getWriteableProperties(portEventType);
List<WriteablePropertyDescriptor> writeableList = new ArrayList<WriteablePropertyDescriptor>();
EventBeanManufacturer manufacturer;
if (propertyNameFile != null) {
WriteablePropertyDescriptor writeableFile = EventTypeUtility.findWritable(propertyNameFile, writeables);
if (writeableFile == null || writeableFile.getType() != String.class) {
throw new EPException("Failed to find writable String-type property '" + propertyNameFile + "', is the property read-only?");
}