Re-factoring of the meta data service

This PR contains the following
1.Meta data service code re-factoring
2.Meta data service configuration changes

Thanks Ramith for pointing this.As a convention, I think we can check isDebugEnabled.As there is no String concatenation I guess it didn't check there.