provider methods for java