I am not able to ghet the default Tray which is choosed in the printer.

In the printers properties page, Tray selection->Paper Source, i have choosed Tray 2,

I am tryign to retrieve this default tray but i couldn't, it is retrieving only the MediaSizeName

I have used this code for retrieve,

DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
PrintService[] services = PrintServiceLookup.lookupPrintServices(flavor, null);

for (int i = 0; i < services.length; i++) {
if (services[i].getName().equals("MyPrinterName")) {
Object Mediainfo =services[i].getDefaultAttributeValue(Media.class);
System.out.println(Mediainfo );

// this gives only the MediaSizeName as na-letter, i could not get tray chossed in the printers property page.

Can some one help me?