public String createNewInstance(String workItemID, String paramValueForMICreation, String sessionHandle) throws RemoteException {
try {
_userList.checkConnection(sessionHandle);
YWorkItem existingItem = _engine.getWorkItem(workItemID);
YWorkItem newItem = _engine.createNewInstance(existingItem, paramValueForMICreation);
return OPEN_SUCCESS + newItem.toXML() + CLOSE_SUCCESS;
} catch (YAWLException e) {
if (e instanceof YPersistenceException) {
enginePersistenceFailure = true;
}
return OPEN_FAILURE + e.getMessage() + CLOSE_FAILURE;