Class consultarId corrected

Note: In this version only compile with jdk7