public static List<CmsRelationType> filterUserDefined(Collection<CmsRelationType> relationTypes) {

        List<CmsRelationType> result = new ArrayList<CmsRelationType>(relationTypes);
        Iterator<CmsRelationType> it = result.iterator();
        while (it.hasNext()) {
            CmsRelationType type = it.next();
            if (type.isInternal()) {
                it.remove();
            }
        }
        return result;
    }
public static List < CmsRelationType > filterUserDefined ( Collection < CmsRelationType > relationTypes ) { List < CmsRelationType > result = new ArrayList < CmsRelationType > ( relationTypes ) ; Iterator < CmsRelationType > it = result . iterator ( ) ; while ( it . hasNext ( ) ) { CmsRelationType type = it . next ( ) ; if ( type . isInternal ( ) ) { it . remove ( ) ; } } return result ; }
Returns all user defined relation types in the given list.<p>

@param relationTypes the collection of relation types to filter

@return a list of {@link CmsRelationType} objects