@Override public String[] getUserConfig(UserDetails user) throws ApsSystemException { String[] config = null; if (null == user) { ApsSystemUtils.getLogger().info("Required shortcut config for null user"); return null; } try { String xml = this.getUserShortcutDAO().loadUserConfig(user.getUsername()); config = UserShortcutConfigDOM.extractUserConfig(xml, this.getUserShortcutsMaxNumber()); config = this.checkShortcutConfig(user, config); } catch (Throwable t) { ApsSystemUtils.logThrowable(t, this, "getUserConfig"); throw new ApsSystemException("Error loading user config", t); } return config; }