roleClassNames = (String[])tmp.toArray();
roleClassNames = (String[])tmp.toArray(new String[tmp.size()]);
    public void setRoleClassNames (String[] classnames)    {        ArrayList tmp = new ArrayList();                if (classnames != null)            tmp.addAll(Arrays.asList(classnames));                 if (!tmp.contains(DEFAULT_ROLE_CLASS_NAME))            tmp.add(DEFAULT_ROLE_CLASS_NAME);        roleClassNames = (String[])tmp.toArray();    }