state.setResourcePool(resourcePool);
MpxResourceConverter converter=new MpxResourceConverter();
for (net.sf.mpxj.Resource mpxResource : mpxProjectFile.getAllResources()){
if (mpxResource.getNull() || mpxResource.getID()==null)
continue;
Resource resource;
if (mpxResource.getID()==0)
resource=resourcePool.getUnassignedResource();
else {
resource=new Resource();
resourcePool.addResource(resource);
}
converter.from(mpxResource, resource, state);
state.mapResource(resource.getId(), resource);
//TODO insert blank lines ignored below
}
}