operationsSupported.add(Operations.SEND_DOCUMENT); //refer to doc...
operationsSupportedDocument.setOperationsSupported(operationsSupported);
resourceProperty.add(operationsSupportedDocument);
resourceProperty = m_propSet.get(PrinterPortPropertyQNames.DOCUMENT_FORMAT_SUPPORTED);
DocumentFormatSupportedDocument documentFormatSupportedDocument =
DocumentFormatSupportedDocument.Factory.newInstance();
MimeMediaTypes mimeMediaTypes =
documentFormatSupportedDocument.addNewDocumentFormatSupported();
mimeMediaTypes.addMimeMediaType(MimeMediaTypeType.TEXT_PLAIN);
resourceProperty.add(documentFormatSupportedDocument);
}