public static Content read(String username, String password, AuthenticationDetails session, Predicate predicate, String contentProperty) {
Content[] resultBinary = null;
try {
AuthenticationUtils.startSession(username, password);
session = AuthenticationUtils.getAuthenticationDetails();
ContentServiceSoapBindingStub contentService = WebServiceFactory.getContentService();
resultBinary = contentService.read(predicate, contentProperty);
} catch (ContentFault e) {
Logging.connectors
.error(
"Alfresco: Content fault exception error during getting the content binary in processDocuments. " +
"Node: "+predicate.getNodes()[0].getPath() + ". "