throw new PlanningException("An error occurred while storing the profile");
}
log.info("Parsing profile information");
stream = new ByteArrayInputStream(bsData.getData());
C3POProfileParser parser = new C3POProfileParser();
parser.read(stream, false);
// if we are here the profile was read successfully
String id = parser.getCollectionId();
String key = parser.getPartitionFilterKey();
String count = parser.getObjectsCountInPartition();
String typeOfObjects = parser.getTypeOfObjects();
String description = parser.getDescriptionOfObjects();
final String repositoryURL = user.getUserGroup().getRepository().getUrl();
List<SampleObject> samples = parser.getSampleObjects();
for (SampleObject sample : samples) {
sample.setFullname(sample.getFullname().replace("http://localhost:8080", repositoryURL));
}
String name = id + "_" + key + ".xml";