CacheObject cobj = res.getCacheObject();
CharacterStream characterStream = (CharacterStream) (cobj.newJavaInstance());
CacheReader reader = characterStream.getReader();
StringBuffer sb = new StringBuffer();
sb.append("");
char[] buf = new char[50];
int count = reader.read(buf);
while(true)
{
for (int i = 0; i < count; i++)
{
sb.append(buf[i]);
}
if(count < 50)
{
break;
}
count = reader.read(buf);
}
return sb.toString();
}
catch (Exception e)
{