NPE protection in EntityMetadata and protective code for getting Resources in a prd-per-resource environment.
Merge pull request #176 from temenostech/PWCorrections

NPE protection in EntityMetadata and protective code for getting Resourc...