handling java package declarations