Added attribute import in Java recipe