Added guard for non-set configuration, and removed unused imports/members.
Added guard for non-set configuration, and removed unused imports/members.

openregister/openregister-java,openregister/openregister-java,openregister/openregister-java,openregister/openregister-java,openregister/openregister-java