public static Module createModuleWithOutDependencies(ModuleItem item) {
return create(item);
}
private static Module create(ModuleItem item) {
Module data = new Module();
data.setUuid(item.getUUID());
data.setHeader(DroolsHeader.getDroolsHeader(item));
data.setExternalURI(item.getExternalURI());
data.setCatRules(item.getCategoryRules());
data.setDescription(item.getDescription());
data.setArchived(item.isArchived());
data.setName(item.getName());
data.setLastModified(item.getLastModified().getTime());
data.setDateCreated(item.getCreatedDate().getTime());
data.setCheckinComment(item.getCheckinComment());
data.setLastContributor(item.getLastContributor());
data.setState(item.getStateDescription());
data.setSnapshot(item.isSnapshot());
data.setVersionNumber(item.getVersionNumber());
data.setFormat(item.getFormat());
return data;
}