The test for null should not be necessary.  If a resource cannot be found, then IAggregator.newResource() should return an instance of NotFoundResource or ExceptionResource.  If no module builder for the resource exists, then an UnsupportedOperationException is thrown.  The method should never return null.