public void delete(String deleteStatement, Object parameter) {
if (deleteStatement.equals("deleteDeployment")) {
DeploymentPersistence deploymentPersistence = ProcessObjectFactory.FACTORYINSTANCE.createDeploymentPersistence(connection);
deploymentPersistence.deleteDeployment(StringUtil.getString(parameter.toString()));
}
if (deleteStatement.equals("deleteEventSubscriptionEntity")) {
EventSubscriptionPersistence eventSubscriptionPersistence = new EventSubscriptionPersistence(connection);
try {