Added dependency for  Sling JCR API
Simplified code

Removed redundant method signatures. Implemented adapters.