public void from(net.sf.mpxj.ResourceAssignment mpxAssignment, Assignment assignment, MpxImportState state) {
Resource resource;
if (mpxAssignment.getResourceUniqueID().intValue() == Resource.UNASSIGNED_ID)
resource=state.getResourcePool().getUnassignedResource();
else resource = state.getResource(new NodeId(mpxAssignment.getResource().getUniqueID()));
if (resource==null)
return; //TODO handle error or log
assignment.setResource(resource);
//convert fields