question: public static boolean checkGMLFootprint ( String footprint ) { try { Configuration configuration = new GMLConfiguration ( ) ; Parser parser = new Parser ( configuration ) ; Geometry geom = ( Geometry ) parser . parse ( new InputSource ( new StringReader ( footprint ) ) ) ; if ( ! geom . isEmpty ( ) && ! geom . isValid ( ) ) { logger . error ( "Wrong footprint" ) ; return false ; } } catch ( Exception e ) { logger . error ( "Error in extracted footprint: " + e . getMessage ( ) ) ; return false ; } return true ; }
target:  Check GML Footprint validity