stripped usage of javax.naming for android compatibility