public void deleteDeploymentCascade(String deploymentId) {
commandService.execute(new DeleteDeploymentCmd(deploymentId, true));
}
public InputStream getResourceAsStream(String deploymentId, String resource) {
byte[] bytes = commandService.execute(new GetResourceAsStreamCmd(deploymentId, resource));
if (bytes!=null) {
return new ByteArrayInputStream(bytes);
}
return null;
}