public static DefectMetadata getBasicMetadata(ProjectMetadata projectMetadata) {
if (projectMetadata.getEditableFields() != null && !projectMetadata.getEditableFields().isEmpty()) {
// TODO create default field map
return new DefectMetadata("test", "test", null, null, null, null, null, new HashMap<String, Object>());
} else {
return new DefectMetadata("Dummy Description", "simple preamble",
projectMetadata.getComponents().get(0),
projectMetadata.getVersions().get(0),
projectMetadata.getSeverities().get(0),
projectMetadata.getPriorities().get(0),
projectMetadata.getStatuses().get(0));