}
public void insert(String insertStatement, PersistentObject persistentObject) {
if (insertStatement.equals("insertComment")) {
CommentPersistence commentPersistence = new CommentPersistence(connection);
commentPersistence.insertComment(persistentObject);
}
if (insertStatement.equals("insertDeployment")) {
DeploymentPersistence deploymentPersistence = ProcessObjectFactory.FACTORYINSTANCE.createDeploymentPersistence(connection);
deploymentPersistence.insertDeployment(persistentObject);
}