PHP scrapped - java class