add properties and java code