State Model Extraction from Java Programs