private Collection<ProcessRoleConfig> getRoles(InputStream input) {
if (input == null) {
return null;
}
XStream xstream = new XStream();
xstream.aliasPackage("config", ProcessRoleConfig.class.getPackage().getName());
xstream.useAttributeFor(String.class);
xstream.useAttributeFor(Boolean.class);
xstream.useAttributeFor(Integer.class);
return (Collection<ProcessRoleConfig>) xstream.fromXML(input);
}