system.db.beginNamedQueryTransaction - perspective

Can the project and database be omitted in the NamedQueryTransaction.
It does not state in the documentation.

java.lang.IllegalArgumentException: Project name can not be blank or missing.

It does.

Syntax - Perspective and Gateway

system.db.beginNamedQueryTransaction( project, database, [isolationLevel], [timeout])

The fact that project and database are not in [ ] brackets means they're compulsory.