PropertyService properties = (PropertyService)getSession(); StringTokenizer attributes, labels; int i;  server = properties.getProperty("ldap.server.host"); basedn = properties.getProperty("ldap.server.basedn"); binddn = properties.getProperty("ldap.server.binddn"); password = properties.getProperty("ldap.server.password");  Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.PROVIDER_URL, "ldap: env.put(Context.SECURITY_PRINCIPAL, binddn); env.put(Context.SECURITY_CREDENTIALS, password);  try { context = new InitialDirContext(env); } catch(NamingException e) { System.err.println(e.getMessage()); e.printStackTrace(System.err); }  attributes = new StringTokenizer(properties.getProperty("overview.attributes"), ","); labels = new StringTokenizer(properties.getProperty("overview.labels"), ","); overviewAttributes = new String[attributes.countTokens()]; overviewLabels = new String[labels.countTokens()]; i = 0; while (attributes.hasMoreTokens()) { overviewAttributes[i] = attributes.nextToken(); overviewLabels[i] = labels.nextToken(); i++; }  attributes = new StringTokenizer(properties.getProperty("detailview.attributes"), ","); labels = new StringTokenizer(properties.getProperty("detailview.labels"), ","); detailviewAttributes = new String[attributes.countTokens()]; detailviewLabels = new String[labels.countTokens()]; i = 0; while (attributes.hasMoreTokens()) { detailviewAttributes[i] = attributes.nextToken(); detailviewLabels[i] = labels.nextToken(); i++; }  this.searchAttribute = properties.getProperty("search.attribute"); this.searchLabel = properties.getProperty("search.label");
    public void postInit(ServletConfig config) {        initGUI();    }