Java config instead of xml