private Boolean isMainId ( String id , String resource , String lastElement ) { Boolean isMainId = false ; if ( id == null ) { if ( ! utils . singularize ( utils . cleanURL ( lastElement ) ) . equals ( resource ) && resource == null ) { isMainId = true ; } } return isMainId ; }
Checks if is the main id or it is a secondary id .