Detecting different pom configuration elements