PIMS sample by java