added disclaimer to getInjector() method javadoc
added nullcheck before mapping resource