handler.setToRelation(toRelValue);
handler.setFromRelation(fromRelValue);
handler.setOutWriter(out);
handler.setAuthenticated(authenticated);
GLinkPullParser pullParser = new GLinkPullParser();
//pullParser.setOutputStream(bos);
//pullParser.setInputStream(in);
pullParser.setReader(inReader);
pullParser.addPullHander(pattern, handler);
pullParser.parse();
inStream.close();
inReader.close();
in.close();
out.flush();
out.close();