class UserProfileBuiltInParameterProvider implements BuiltInParameterProvider, Serializable {

    protected Collection<ProfileAttribute> getProfileAttributes(ProfileAttributeCategory category) {
        // Check if we can use this category, or retrieving attributes hierarchically
        if (category == ProfileAttributeCategory.HIERARCHICAL || profileAttributeCategories.contains(category)) {
            return profileAttributeService.
                    getCurrentUserProfileAttributes(ExecutionContextImpl.getRuntimeExecutionContext(), category);
        }

        return new ArrayList<ProfileAttribute>();
    }

    public  UserProfileBuiltInParameterProvider();

}