hresource.setPasswords(password, password2);
hresource.setIsAdministrator("Admin".equals(usertype));
resource = hresource;
List problems = hresource.verify();
if (problems.size() > 0) {
throw new YAWLException(YMessagePrinter.getMessageString(problems));
}
} else {
NonHumanResource nhresource = new NonHumanResource(resourceID);
nhresource.setDescription(resdescription);
resource = nhresource;