try {
Vector<ASMRepositoryItemBean> workflows = asmService.getWorkflowsFromRepository(developer, RepositoryItemTypeConstants.Application);
for(ASMRepositoryItemBean item: workflows){
SingleJobRepositoryItemBean itemBean = new SingleJobRepositoryItemBean();
itemBean.setExportText(item.getExportText());
itemBean.setExportType(item.getExportType());
itemBean.setId(item.getId());
itemBean.setItemID(item.getItemID());
itemBean.setUserID(item.getUserID());
itemBean.setUserName(screenName);
workflowsInRepository.add(itemBean);
}
} catch (Exception ex) {
Logger.getLogger(SingleJobWizardPortlet.class.getName()).log(Level.SEVERE, null, ex);