private void locator(EnvParams ep){
        try{
            BasicTextEncryptor textEncryptor = new BasicTextEncryptor();
            //textEncryptor.setPassword(System.getenv("_WLS_PASS_KEY"));
            textEncryptor.setPassword("password");
            String pass=textEncryptor.decrypt(ep.pass);
            props=new Hashtable();
            props.put(javax.naming.Context.PROVIDER_URL,ep.host);
            props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
            props.put(javax.naming.Context.SECURITY_PRINCIPAL,ep.user);
            props.put(javax.naming.Context.SECURITY_CREDENTIALS,pass);
            props.put("dedicated.connection","true");
            locator = LocatorFactory.createLocator(props);
        }
        catch(IllegalArgumentException e){
            this.error="Exception: Password cannot be empty see README";
            logger.error(this.error,e);
            e.printStackTrace();
        }
        catch(Exception e){
            this.error="Error in creating locator";
            logger.error(this.error,e);
            e.printStackTrace();
        }
    }