class UserProfileBuiltInParameterProvider implements BuiltInParameterProvider, Serializable {

    public Object[] getParameter(ExecutionContext context, List jrParameters, Map parameters, String name) {
        // Contains only parameter name, without attribute name (e.g. for parameter "LoggedInUserAttribute_attr1"
        // parameterName will be "LoggedInUserAttribute_")
        String parameterName;

        int indexOfDelimiter = name.indexOf(ATTRIBUTE_DELIMITER);
        if (indexOfDelimiter != -1) {
            // Remove attribute name but include delimiter
            parameterName = name.substring(0, indexOfDelimiter + 1);
        } else {
            parameterName = name;
        }

        Object[] result = null;
        ParameterCallback callback = availableParameters.get(parameterName);
        if (callback != null) {
            result = callback.getParameter(name);
        }

        return result;
    }

    public  UserProfileBuiltInParameterProvider();

}