Common java code for all bb4 projects.