made a few changes to BaseResource class

Implemented ```assertNotNull(final Object object, final String message)``` to handle validation logic but in future, a class ```RexslAssert``` needs to be introduced to perform this kinds of validation throughout the entire project.

https://github.com/SpringSource/spring-framework/blob/master/spring-core/src/main/java/org/springframework/util/Assert.java