*/
@Override
public void execute() throws CommandExecutionException {
try {
Map<SignatureType, SignatureFileInfo> sigs = signatureManager.getDefaultSignatures();
ProfileInstance profile = profileManager.createProfile(sigs);
profile.changeState(ProfileState.VIRGIN);
for (String resource : resources) {
profile.addResource(locationResolver.getResource(resource, recursive));
}
Future<?> future = profileManager.start(profile.getUuid());
future.get();
ProgressObserver progressCallback = new ProgressObserver() {
@Override
public void onProgress(Integer progress) {
}
};
profileManager.save(profile.getUuid(), new File(destination), progressCallback);
profileManager.closeProfile(profile.getUuid());
} catch (ProfileManagerException e) {
throw new CommandExecutionException(e);
} catch (InterruptedException e) {
throw new CommandExecutionException(e);
} catch (ExecutionException e) {