sample to serialize java project