added attachment java api