* @param operator
* @param connections
* @return
*/
public static ProcessEngine createProcessEngine(Object operator,Map<String,Connection> connections){
ExternalContent externalContent=new ExternalContent();
externalContent.setAuthenticatedUserId(StringUtil.getString(operator));
for(Entry<String,Connection> tmp:connections.entrySet()){
if(tmp.getKey().equals("null"))
externalContent.setConnection(tmp.getValue());
else
externalContent.setConnection(tmp.getKey(), tmp.getValue());
}
return createProcessEngine(externalContent);
}